package com.ruoyi.admin.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

public class OrderVO extends BaseEntity {
    private static final long serialVersionUID = 1L;
    /**医院名称*/
    @Excel(name = "医院名称")
    private String yiyuan;
    /**科室名称*/
    @Excel(name = "科室名称")
    private String keshi;
    /**用户电话*/
    @Excel(name = "用户电话")
    private String shoujihao;
    /**电话号码*/
    @Excel(name = "用户姓名")
    private String nickname;

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    /** 订单id */
    private Long orderId;
    /**床位编号*/
    private String bedCode;

    public void setBedCode(String bedCode) {
        this.bedCode = bedCode;
    }

    public String getBedCode() {
        return bedCode;
    }

    public String getYiyuan() {
        return yiyuan;
    }

    public void setYiyuan(String yiyuan) {
        this.yiyuan = yiyuan;
    }

    public String getKeshi() {
        return keshi;
    }

    public void setKeshi(String keshi) {
        this.keshi = keshi;
    }

    public String getShoujihao() {
        return shoujihao;
    }

    public void setShoujihao(String shoujihao) {
        this.shoujihao = shoujihao;
    }

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNumber;

    /** 订单状态:1进行中、2待支付 、3已支付、4已完成 */
    @Excel(name = "订单状态:1进行中、2待支付 、3已支付、4已完成")
    private Long orderStatus;

    /** 异常原因 */
    @Excel(name = "异常原因")
    private String abnormality;

    /** 下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    /** 归还时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "归还时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date giveBackTime;

    /** 床位id */
    @Excel(name = "床位id")
    private Long bedId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long loginId;

    /** 租借时长 */
    @Excel(name = "租借时长")
    private String leaseTime;

    /** 状态:1正常、2异常 */
    @Excel(name = "状态:1正常、2异常")
    private Long status;

    /** 租金 */
    @Excel(name = "租金")
    private BigDecimal rent;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paymentTime;

    public void setOrderId(Long orderId)
    {
        this.orderId = orderId;
    }

    public Long getOrderId()
    {
        return orderId;
    }
    public void setOrderNumber(String orderNumber)
    {
        this.orderNumber = orderNumber;
    }

    public String getOrderNumber()
    {
        return orderNumber;
    }
    public void setOrderStatus(Long orderStatus)
    {
        this.orderStatus = orderStatus;
    }

    public Long getOrderStatus()
    {
        return orderStatus;
    }
    public void setAbnormality(String abnormality)
    {
        this.abnormality = abnormality;
    }

    public String getAbnormality()
    {
        return abnormality;
    }
    public void setOrderTime(Date orderTime)
    {
        this.orderTime = orderTime;
    }

    public Date getOrderTime()
    {
        return orderTime;
    }
    public void setGiveBackTime(Date giveBackTime)
    {
        this.giveBackTime = giveBackTime;
    }

    public Date getGiveBackTime()
    {
        return giveBackTime;
    }
    public void setBedId(Long bedId)
    {
        this.bedId = bedId;
    }

    public Long getBedId()
    {
        return bedId;
    }
    public void setLoginId(Long loginId)
    {
        this.loginId = loginId;
    }

    public Long getLoginId()
    {
        return loginId;
    }
    public void setLeaseTime(String leaseTime)
    {
        this.leaseTime = leaseTime;
    }

    public String getLeaseTime()
    {
        return leaseTime;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setRent(BigDecimal rent)
    {
        this.rent = rent;
    }

    public BigDecimal getRent()
    {
        return rent;
    }
    public void setPaymentTime(Date paymentTime)
    {
        this.paymentTime = paymentTime;
    }

    public Date getPaymentTime()
    {
        return paymentTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("orderId", getOrderId())
                .append("orderNumber", getOrderNumber())
                .append("orderStatus", getOrderStatus())
                .append("abnormality", getAbnormality())
                .append("orderTime", getOrderTime())
                .append("giveBackTime", getGiveBackTime())
                .append("bedId", getBedId())
                .append("loginId", getLoginId())
                .append("leaseTime", getLeaseTime())
                .append("status", getStatus())
                .append("rent", getRent())
                .append("paymentTime", getPaymentTime())
                .append("yiyuan", getYiyuan())
                .append("keshi", getKeshi())
                .append("dianhua", getShoujihao())
                .append("bedCode", getBedCode())
                .append("nickname", getNickname())
                .toString();
    }

}
